<html>
<head><meta charset="utf-8"><title>Could not document alloc · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Could.20not.20document.20alloc.html">Could not document alloc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="152505678"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Could%20not%20document%20alloc/near/152505678" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Could.20not.20document.20alloc.html#152505678">(Dec 25 2018 at 09:35)</a>:</h4>
<p>Hi! So I'm trying to run <code>./x.py doc --stage 1</code>, and I'm getting this error:</p>
<div class="codehilite"><pre><span></span>error: couldn&#39;t load codegen backend &quot;$path/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so&quot;: &quot;librustc_codegen_ssa-aff88005442ed60f.so: cannot open shared object file: No such file or directory&quot;
</pre></div>



<a name="152505721"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Could%20not%20document%20alloc/near/152505721" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Could.20not.20document.20alloc.html#152505721">(Dec 25 2018 at 09:36)</a>:</h4>
<p>Building stage 1 works fine, and AFAIK you should be able to get docs in stage 1, right?</p>



<a name="152507665"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Could%20not%20document%20alloc/near/152507665" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Could.20not.20document.20alloc.html#152507665">(Dec 25 2018 at 10:44)</a>:</h4>
<p>This seems more like a <code>x.py</code> issue rather than a rustc/rustdoc one. I believe that behind the scenes <code>x.py</code> sets the appropriate <code>$LD_LIBRARY_PATH</code> (which explains system where to look for dynamic libraries) and it might be neglecting to do so for rustdoc?</p>



<a name="152510533"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Could%20not%20document%20alloc/near/152510533" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> detrumi <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Could.20not.20document.20alloc.html#152510533">(Dec 25 2018 at 12:28)</a>:</h4>
<p>Ah. Hmm, building stage 2 fixed the problem at least</p>



<a name="152511092"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Could%20not%20document%20alloc/near/152511092" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Could.20not.20document.20alloc.html#152511092">(Dec 25 2018 at 12:51)</a>:</h4>
<p>Quite possibly a dependency graph issue</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>